/*
 * Copyright 2011-2020 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0.
 * See `LICENSE` in the project root for license information.
 */

package me.ijleex.mgmt.framework.util.lotterydraw.data;

/**
 * 奖品信息
 *
 * @author liym
 * @since 2019-04-18 16:35 新建
 */
public class Prize {

    /**
     * 序号
     */
    private int index;
    /**
     * 奖品编号
     */
    private String prizeNo;
    /**
     * 奖品名称
     */
    private String name;
    /**
     * 抽中的概率（权重）
     */
    private double probability;

    public Prize(int index, String prizeNo, String name, double probability) {
        this.index = index;
        this.prizeNo = prizeNo;
        this.name = name;
        this.probability = probability;
    }

    public int getIndex() {
        return index;
    }

    public String getPrizeNo() {
        return prizeNo;
    }

    public String getName() {
        return prizeNo;
    }

    public double getProbability() {
        return probability;
    }

    @Override
    public String toString() {
        return "Prize{prizeNo=" + prizeNo + ", name=" + name + '}';
    }

}
